POST https://{{ host }}/resources
Content-Type: application/json

{
  "name": "{{ resource-name }}",
  "properties": {
    "compose_yml": "version: '2'\nservices:\n  redis-master:\n    image: k8s.gcr.io/redis:e2e\n    ports:\n      - '6379'\n    labels:\n      caas.service.type: LoadBalancer\n  redis-slave:\n    image: gcr.io/google_samples/gb-redisslave:v3\n    ports:\n      - '6379'\n    environment:\n      - GET_HOSTS_FROM=dns\n  frontend:\n    image: gcr.io/google-samples/gb-frontend:v4\n    ports:\n      - '80'\n    environment:\n      - GET_HOSTS_FROM=dns\n    labels:\n      caas.service.type: LoadBalancer"
  }
}

###
GET https://{{ host }}/resources/{{ resource-name }}
Accept: application/json

###
GET https://{{ host }}/resources
Accept: application/json

###
GET https://{{ host }}/compose-schema
Accept: application/json

###
PUT https://{{ host }}/resources/{{ resource-name }}
Accept: application/json
Content-Type: application/json

{
  "properties": {
    "suspended": true
  }
}

###
PUT https://{{ host }}/resources/{{ resource-name }}
Accept: application/json
Content-Type: application/json

{
  "properties": {
    "suspended": false
  }
}

###
POST https://{{ host }}/search-resources
Accept: application/json
Content-Type: application/json

{
  "updated_from": "2022-01-14T09:36:55.732406Z",
  "limit": 100
}

###
DELETE https://{{ host }}/resources/{{resource-name}}
Accept: application/json
